
import config from 'config';
import schema from 'async-validator';
import { AppContext } from 'ROOT/interface/App';

import { setDebug } from 'ROOT/common/logger';

export default class CommonController {
  public static setDebug = async (ctx: AppContext) => {
    const { debug } = ctx.request.query;
    setDebug(debug === 'true');
    ctx.sendSuccess({ data: debug === 'true' });
  }

}


